<template>
    <div class="app-container">
        <el-tabs v-model="activeName">
            <el-tab-pane label="基础信息" name="first">
                <device-detail :is-edit="true" />
            </el-tab-pane>
            <el-tab-pane label="网关" name="gateway">
                <device-gateway />
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
import DeviceDetail from './components/DeviceDetail.vue'
import DeviceGateway from './components/DeviceGateway.vue'

export default {
    components: { DeviceDetail, DeviceGateway },
    data() {
        return {
            activeName: 'first',
            id: 0
        }
    },
    created() {
        this.id = this.$route.query.id
    }
}
</script>
